import fetch from '@/utils/fetch'


export function getSellerOrder(id,offset,keyword,date,status) {
  return fetch({
    url: '/get/seller/order',
    method: 'post',
     data: {
     id,
     offset,
     keyword,
     date,
     status
    }
  })
}

export function getTodayOrder(id,beginToday,endToday) {
  return fetch({
    url: '/get/today/order',
    method: 'get',
     params: {
     id,
     beginToday,
     endToday
    }
  })
}




export function getOrderById(id) {
  return fetch({
    url: '/get/order',
    method: 'get',
     params: {
     id
    }
  })
}


export function getUserOrder(id) {
  return fetch({
    url: '/get/user/order',
    method: 'get',
     params: {
     id
    }
  })
}

export function getOrderDetail(id) {
  return fetch({
    url: '/get/user/order/detail',
    method: 'get',
     params: {
     id
    }
  })
}




  export function getOrderList(id) {
  return fetch({
    url: '/get/order/list',
    method: 'get',
     params: {
     id
    }
  })
}

export function updateOrder(id,status) {

  return fetch({
    url: '/update/order',
    method: 'get',
     params: {
      id,
      status
    }
  })
}










   
